from server import plugin


def execute(plugin_name: str, export_name: str):
    return plugin.exports_lst[plugin_name][export_name]


class Export():
    def __init__(self, plugid: str):
        self.exports: dict[str, object] = {}

    def __call__(self, func):
        # 导出方法
        self.exports[func.__name__] = func
        return func
